<?php echo $this->Form->create('Empleados', array('action' => 'empleados')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE ENTREGAS</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
                    <th>Nro</th>
                    <th>Numero</th>
                    <th>Sucursal</th>
                    <th>Responsable</th>
                    <th>Fecha</th>
                    <th>Acciones</th>  
                </tr>
            </thead>
            <tbody>
                <?php  $i = 1;  ?>
            <?php $i=1; foreach ($entregas as $entrega): ?>
                <tr>
                    <td><?php echo $i; $i++; ?></td>
                    <td><?php echo $entrega['Notamyentrega']['numero']; ?></td>
                    <td><?php echo $entrega['Sucursale']['nombre']; ?></td>
                    <td><?php echo $entrega['Usuario']['nombre']; ?></td>
                    <td><?php $fecha=explode('-',$entrega['Notamyentrega']['fecha']);echo $fecha[2].'-'.$fecha[1].'-'.$fecha[0];?></td>
                    <td style="font-size:10px;">
                    <?php echo $this->Html->link($this->Html->image("iconos/detalle.png", array("alt" =>'Detalle', 'title' => 'Detalle')), array('action' => 'detalle', $entrega['Notamyentrega']['id']),array('escape' => false)); ?>
                    
                     <?php //echo $this->Html->link('DETALLE',array('action' => 'detalle', $entrega['Notamyentrega']['id']), array('class' => 'inner_a')); ?>
                    </td>
                </tr>
            
            <?php endforeach; ?>               
            </tbody>
        </table>
    </div> 
</div> 


  